package cn.com.blueInfo.HaiYuan.business.calculator.mapper;

import cn.com.blueInfo.HaiYuan.business.calculator.entity.StockCalculator;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 库存计算器
 * @ClassName: StockCalculatorMapper
 * @tableName: tj_hai_stock_calculator
 * @author suxch
 * @date 2019年4月23日  下午4:37:14
 */
@Mapper
public interface StockCalculatorMapper extends BaseMapper<StockCalculator> {

    /**
     * 批量新增药品基本信息
     * @Title: batchAddStockCalculatorInfo
     * @param stockCalculatorList
     * @return int
     * @throws
     */
    int batchAddStockCalculatorInfo(List<StockCalculator> stockCalculatorList);

    /**
     * 新增药品基本信息
     * @Title: addStockCalculatorInfo
     * @param stockCalculator
     * @return int
     * @throws
     */
    int addStockCalculatorInfo(StockCalculator stockCalculator);

    /**
     * 批量删除药品基本信息
     * @Title: batchDelStockCalculatorInfoByUnids
     * @param stockCalculatorUnids
     * @return int
     * @throws
     */
    int batchDelStockCalculatorInfoByUnids(ArrayList<String> stockCalculatorUnids);

    /**
     * 删除药品基本信息
     * @Title: delStockCalculatorInfoByUnid
     * @param unid
     * @return int
     * @throws
     */
    int delStockCalculatorInfoByUnid(String unid);

    /**
     * 批量更新药品基本信息
     * @Title: batchUpdateStockCalculatorInfoByUnid
     * @param stockCalculatorList
     * @return int
     * @throws
     */
    int batchUpdateStockCalculatorInfoByUnid(List<StockCalculator> stockCalculatorList);

    /**
     * 更新药品基本信息
     * @Title: updateStockCalculatorInfoByUnid
     * @param stockCalculator
     * @return int
     * @throws
     */
    int updateStockCalculatorInfoByUnid(StockCalculator stockCalculator);

    /**
     * 分页查询药品基本信息
     * @Title: queryStockCalculatorInfo
     * @param paramMap
     * @return List<StockCalculator>
     * @throws
     */
    List<StockCalculator> queryStockCalculatorInfo(Map<String, Object> paramMap);

    /**
     * 查询药品基本信息
     * @Title: queryStockCalculatorInfo
     * @return List<StockCalculator>
     * @throws
     */
    List<StockCalculator> queryStockCalculatorInfo();

    /**
     * 条件查询药品基本信息数量
     * @Title: queryStockCalculatorInfoCount
     * @param paramMap
     * @return Integer
     * @throws
     */
    Integer queryStockCalculatorInfoCount(Map<String, Object> paramMap);

    /**
     * 查询药品基本信息数量
     * @Title: queryStockCalculatorInfoCount
     * @return Integer
     * @throws
     */
    Integer queryStockCalculatorInfoCount();

    /**
     * 查询药品最大排序编号
     * @Title: queryMaxOrderNumber
     * @return Integer
     * @throws
     */
    Integer queryMaxOrderNumber();

}
